package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PmsBatchProductMapper;
import com.ruoyi.system.domain.PmsBatchProduct;
import com.ruoyi.system.service.IPmsBatchProductService;

/**
 * 批次-商品关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-28
 */
@Service
public class PmsBatchProductServiceImpl implements IPmsBatchProductService 
{
    @Autowired
    private PmsBatchProductMapper pmsBatchProductMapper;

    /**
     * 查询批次-商品关联
     * 
     * @param pmsBatchProductId 批次-商品关联主键
     * @return 批次-商品关联
     */
    @Override
    public PmsBatchProduct selectPmsBatchProductByPmsBatchProductId(Long pmsBatchProductId)
    {
        return pmsBatchProductMapper.selectPmsBatchProductByPmsBatchProductId(pmsBatchProductId);
    }

    /**
     * 查询批次-商品关联列表
     * 
     * @param pmsBatchProduct 批次-商品关联
     * @return 批次-商品关联
     */
    @Override
    public List<PmsBatchProduct> selectPmsBatchProductList(PmsBatchProduct pmsBatchProduct)
    {
        return pmsBatchProductMapper.selectPmsBatchProductList(pmsBatchProduct);
    }

    /**
     * 新增批次-商品关联
     * 
     * @param pmsBatchProduct 批次-商品关联
     * @return 结果
     */
    @Override
    public int insertPmsBatchProduct(PmsBatchProduct pmsBatchProduct)
    {
        return pmsBatchProductMapper.insertPmsBatchProduct(pmsBatchProduct);
    }

    /**
     * 修改批次-商品关联
     * 
     * @param pmsBatchProduct 批次-商品关联
     * @return 结果
     */
    @Override
    public int updatePmsBatchProduct(PmsBatchProduct pmsBatchProduct)
    {
        return pmsBatchProductMapper.updatePmsBatchProduct(pmsBatchProduct);
    }

    /**
     * 批量删除批次-商品关联
     * 
     * @param pmsBatchProductIds 需要删除的批次-商品关联主键
     * @return 结果
     */
    @Override
    public int deletePmsBatchProductByPmsBatchProductIds(Long[] pmsBatchProductIds)
    {
        return pmsBatchProductMapper.deletePmsBatchProductByPmsBatchProductIds(pmsBatchProductIds);
    }

    /**
     * 删除批次-商品关联信息
     * 
     * @param pmsBatchProductId 批次-商品关联主键
     * @return 结果
     */
    @Override
    public int deletePmsBatchProductByPmsBatchProductId(Long pmsBatchProductId)
    {
        return pmsBatchProductMapper.deletePmsBatchProductByPmsBatchProductId(pmsBatchProductId);
    }
}
